package org.jypj.dev.model;

import java.util.ArrayList;
import java.util.List;

import com.google.gson.Gson;

/**
 * 字典代号表
 * 
 * @author chenyu
 */
public class Code implements java.io.Serializable {

	private static final long serialVersionUID = 1L;

	private String id; // 主键
	private String code; // 字典代号
	private String name; // 字典名称
	private int sortOrder; // 排序
	private String describtion; // 描述

	private String pid;// 上级菜单

	private List<CodeData> codeDatas = new ArrayList<>();//子菜单数据

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getSortOrder() {
		return sortOrder;
	}

	public void setSortOrder(int sortOrder) {
		this.sortOrder = sortOrder;
	}

	public String getDescribtion() {
		return this.describtion;
	}

	public void setDescribtion(String describtion) {
		this.describtion = describtion;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public List<CodeData> getCodeDatas() {
		return codeDatas;
	}

	public void setCodeDatas(List<CodeData> codeDatas) {
		this.codeDatas = codeDatas;
	}
	@Override
	public String toString() {
		Gson gson =new Gson();
		return gson.toJson(this);
	}

}